package com.ty.fulllite;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

/**
 * @author zhutianyu
 * @date 2021/9/16 16:40
 */
//@Configuration
public class FullConfig {

    @Bean
    public User user(){
        return new User("17",17);
    }

    @Bean
    public User user1(){
        System.out.println("user() = " + user());
        System.out.println("user() = " + user());
        return new User("171",171);
    }
//    @Bean
//    private final User userInne11r() { // 只在lite模式下才好使
////        public User userInner() {
//        return new User("inner",123);
//    }

    public static class InnerConfig {

        @Bean
//         private final User userInner() { // 只在lite模式下才好使
        public User userInner() {
            return new User("inner",123);
        }
    }



}
